﻿#region

using xConnected.Core.Interfaces.Paging;
using xConnected.Core.Model;

#endregion

namespace xConnected.Service
{
    public partial class LanguageService
    {
        public IPage<Language> GetAllPaged(int pageIndex = 0, int pageSize = 10)
        {
            return Repository.GetAllPaged(pageIndex, pageSize);
        }

        public IPage<Language> GetAllPagedSearched(string search = "", int pageIndex = 0, int pageSize = 10)
        {
            return Repository.GetAllPagedSearched(search, pageIndex, pageSize);
        }
    }
}